package com.digital.library.modules.system.service.impl;

import com.digital.library.modules.system.domain.LsBook;
import com.digital.library.modules.system.mapper.LsBookMapper;
import com.digital.library.modules.system.service.LsBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LsBookServiceImpl implements LsBookService {

    @Autowired
    LsBookMapper lsBookMapper;

    @Override
    public int save(LsBook lsBook) {
        return lsBookMapper.save(lsBook);
    }

    @Override
    public List<LsBook> list(LsBook lsBook) {
        return lsBookMapper.list(lsBook);
    }

    @Override
    public int update(LsBook lsBook) {
        return lsBookMapper.update(lsBook);
    }

    @Override
    public int deleteById(int id) {
        return lsBookMapper.deleteById(id);
    }
}
